RegularSetting

fun RegularSetting(title: Int, body: Int, onClick: () -> Unit)

A setting.

Parameters

title

the ID of the string containing the setting's name.

body

the ID of the string containing the setting's description.

onClick

the action to perform when the setting is tapped.

Samples

import androidx.compose.runtime.Composable
import com.porg.gugal.R
import com.porg.m3.settings.RegularPreviewSetting
import com.porg.m3.settings.RegularSetting

fun main() { 
   //sampleStart 
   RegularSetting(
    R.string.setting_about_title,
    R.string.setting_about_desc
) {
    // show the about screen here
} 
   //sampleEnd
}

fun RegularSetting(title: String, body: String, onClick: () -> Unit)

A setting.

Parameters

title

the setting's name.

body

the setting's description.

onClick

the action to perform when the setting is tapped.

Samples

import androidx.compose.runtime.Composable
import com.porg.gugal.R
import com.porg.m3.settings.RegularPreviewSetting
import com.porg.m3.settings.RegularSetting

fun main() { 
   //sampleStart 
   RegularSetting(
    R.string.setting_about_title,
    R.string.setting_about_desc
) {
    // show the about screen here
} 
   //sampleEnd
}